<?php
    $link=mysql_connect("127.0.0.1","root","root");

    mysql_select_db("ze1");
    $id=$_GET['id'];
    $word=$_GET['word'];
    echo "1".$id;
    echo "1".$word;
    

    $exec="insert into ze1 values($id,'$word')";
    $result=mysql_query($exec);
    if($result) echo "学生已添加到数据表中<br>";
    else echo "该学生没有添加进数据表，请重新输入。<br>";
    mysql_close();
?>